# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=IO-stringy
pkgname=perl-${_realname}
pkgver=2.111
pkgrel=1
pkgdesc="I/O on in-core objects like strings/arrays"
arch=('any')
url="http://search.cpan.org/dist/IO-stringy"
groups=('perl-modules')
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/D/DS/DSKOLL/${_realname}-$pkgver.tar.gz")
sha256sums=('8c67fd6608c3c4e74f7324f1404a856c331dbf48d9deda6aaa8296ea41bf199d')

build() {
  cd  "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd  "${srcdir}/${_realname}-${pkgver}"
  make test
}

package() {
  cd  "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}
